﻿namespace HRM.CORE.Machine
{
    using DevExpress.Utils;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Grid;
    using DevExpress.XtraLayout;
    using DevExpress.XtraLayout.Utils;

    using HRM.CORE;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Data.SqlClient;
    using System.Drawing;
    using System.Threading;
    using System.Windows.Forms; using Common;
    using zkemkeeper;
    using APP.HELPER.Data.Helper;

    public class xucReg : XtraUserControl
    {
        public CZKEMClass axCZKEM1;
        private SimpleButton btnReg;
        private SimpleButton btnReset;
        private SimpleButton btnSignUp;
        private GridColumn colEmployeeCode;
        private GridColumn colEnrollNumber;
        private GridColumn colFirstName;
        private GridColumn colLastName;
        private GridColumn colReset;
        private IContainer components;
        private string conn;
        private CZKEMClass czkem;
        private GridView gbList;
        private GridControl gcList;
        private GroupControl groupControl1;
        private GroupControl groupControl2;
        private LabelControl labelControl1;
        private LabelControl labelControl2;
        private LabelControl labelControl3;
        private LayoutControl layoutControl1;
        private LayoutControlGroup layoutControlGroup1;
        private LayoutControlItem layoutControlItem1;
        private LayoutControlItem layoutControlItem2;
        private LayoutControlItem layoutControlItem3;
        private LayoutControlItem layoutControlItem4;
        private LabelControl lbStatus;
        private PanelControl panelControl1;
        private RepositoryItemHyperLinkEdit repositoryItemHyperLinkEdit1;
        private int result;
        private SimpleLabelItem simpleLabelItem1;
        private bool status;
        private System.Windows.Forms.Timer timer;
        private TextEdit txtEmployeeCode;
        private TextEdit txtEnrollNumber;

        public xucReg()
        {
            this.components = null;
            this.axCZKEM1 = new CZKEMClass();
            this.conn = SqlHelper.ConnectString;
            this.InitializeComponent();
            this.Init();
        }

        public xucReg(CZKEMClass czkemClass)
        {
            this.components = null;
            this.axCZKEM1 = new CZKEMClass();
            this.conn = SqlHelper.ConnectString;
            this.InitializeComponent();
            this.Init();
            this.czkem = czkemClass;
            this.czkem.OnEnrollFinger += new _IZKEMEvents_OnEnrollFingerEventHandler(this.czkem_OnEnrollFinger);
        }

        private void btnReg_Click(object sender, EventArgs e)
        {
            this.czkem.CancelOperation();
            if (this.txtEnrollNumber.Text == "")
            {
                XtraMessageBox.Show("Vui l\x00f2ng nhập m\x00e3", "Th\x00f4ng B\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.txtEnrollNumber.Focus();
            }
            else
            {
                this.status = this.czkem.StartEnroll(Convert.ToInt32(this.txtEnrollNumber.Text), 0);
            }
        }

        private void btnReset_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            MessageBox.Show("Thiết bị đang  khởi động lại !!", "Th\x00f4ng B\x00e1o");
            if (!this.czkem.RestartDevice(1))
            {
                XtraMessageBox.Show("Kiểm tra lại m\x00e3 m\x00e1y");
            }
            Application.Restart();
        }

        private void btnSignUp_Click(object sender, EventArgs e)
        {
            this.txtEnrollNumber.Enabled = true;
            this.btnReg.Enabled = true;
        }

        private void czkem_OnEnrollFinger(int EnrollNumber, int FingerIndex, int ActionResult, int TemplateLength)
        {
            if (ActionResult == 0)
            {
                SqlConnection connection;
                SqlCommand command;
                this.lbStatus.Text = this.txtEmployeeCode.Text + " --- Tiến h\x00e0nh x\x00e1c nhận v\x00e2n tay ---";
                Thread.Sleep(0x3e8);
                this.czkem.StartIdentify();
                this.gbList.SetFocusedRowCellValue("EnrollNumber", this.txtEnrollNumber.Text);
                if (XtraMessageBox.Show("Đăng k\x00fd th\x00e0nh c\x00f4ng , tiếp tục đăng k\x00fd ?", "Th\x00f4ng B\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
                {
                    connection = new SqlConnection(this.conn);
                    connection.Open();
                    command = new SqlCommand {
                        CommandType = CommandType.StoredProcedure,
                        CommandText = "HRM_EMPLOYEE_UpdateEnrollNumber",
                        Connection = connection
                    };
                    command.Parameters.Add("@EmployeeCode", SqlDbType.VarChar).Value = this.txtEmployeeCode.Text;
                    command.Parameters.Add("@EnrollNumber", SqlDbType.VarChar).Value = this.txtEnrollNumber.Text;
                    command.ExecuteNonQuery();
                    connection.Close();
                    this.txtEnrollNumber.Enabled = false;
                    this.btnReg.Enabled = false;
                    this.lbStatus.Text = this.txtEmployeeCode.Text + " --- Đăng k\x00fd v\x00e2n tay th\x00e0nh c\x00f4ng ---";
                }
                else
                {
                    connection = new SqlConnection(this.conn);
                    connection.Open();
                    command = new SqlCommand {
                        CommandType = CommandType.StoredProcedure,
                        CommandText = "HRM_EMPLOYEE_UpdateEnrollNumber",
                        Connection = connection
                    };
                    command.Parameters.Add("@EmployeeCode", SqlDbType.VarChar).Value = this.txtEmployeeCode.Text;
                    command.Parameters.Add("@EnrollNumber", SqlDbType.VarChar).Value = this.txtEnrollNumber.Text;
                    command.ExecuteNonQuery();
                    this.txtEnrollNumber.Enabled = true;
                    this.btnReg.Enabled = true;
                }
            }
            else
            {
                this.lbStatus.Text = this.txtEmployeeCode.Text + " --- Đăng k\x00fd v\x00e2n tay thất bại ---";
                if (XtraMessageBox.Show("Đăng k\x00fd thất bại, đăng k\x00fd lại ?", "Th\x00f4ng B\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
                {
                    this.txtEnrollNumber.Enabled = false;
                    this.btnReg.Enabled = false;
                    this.lbStatus.Text = this.txtEmployeeCode.Text + " --- Đăng k\x00fd v\x00e2n tay thất bại ---";
                }
                else
                {
                    this.txtEnrollNumber.Enabled = true;
                    this.btnReg.Enabled = true;
                }
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void gbList_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            try
            {
                this.txtEmployeeCode.Text = this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString();
                this.txtEnrollNumber.Text = this.gbList.GetFocusedRowCellValue(this.colEnrollNumber).ToString();
            }
            catch
            {
            }
        }

        private void gbList_KeyDown(object sender, KeyEventArgs e)
        {
            try
            {
                if ((e.KeyCode == Keys.Delete) && (XtraMessageBox.Show("Bạn muốn x\x00f3a dữ liệu v\x00e2n tay của nh\x00e2n vi\x00ean n\x00e0y ?", "Th\x00f4ng B\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No))
                {
                    int dwEnrollNumber = Convert.ToInt32(this.gbList.GetFocusedRowCellValue(this.colEnrollNumber));
                    if (this.czkem.DelUserTmp(1, dwEnrollNumber, 0))
                    {
                        this.czkem.RefreshData(1);
                        this.gbList.SetFocusedRowCellValue(this.colEnrollNumber, "");
                        SqlConnection connection = new SqlConnection(this.conn);
                        connection.Open();
                        SqlCommand command = new SqlCommand {
                            CommandType = CommandType.StoredProcedure,
                            CommandText = "HRM_EMPLOYEE_UpdateEnrollNumber",
                            Connection = connection
                        };
                        command.Parameters.Add("@EmployeeCode", SqlDbType.VarChar).Value = this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString();
                        command.Parameters.Add("@EnrollNumber", SqlDbType.VarChar).Value = "";
                        command.ExecuteNonQuery();
                        XtraMessageBox.Show("X\x00f3a th\x00e0nh c\x00f4ng");
                    }
                    else
                    {
                        XtraMessageBox.Show("Kh\x00f4ng th\x00e0nh c\x00f4ng");
                    }
                }
            }
            catch (Exception)
            {
            }
        }

        private void Init()
        {
            this.gcList.DataSource = new HRM_EMPLOYEE().GetListCurrentNow(0, "", -1);
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            this.layoutControl1 = new LayoutControl();
            this.panelControl1 = new PanelControl();
            this.labelControl3 = new LabelControl();
            this.btnReset = new SimpleButton();
            this.groupControl2 = new GroupControl();
            this.btnSignUp = new SimpleButton();
            this.lbStatus = new LabelControl();
            this.btnReg = new SimpleButton();
            this.labelControl2 = new LabelControl();
            this.txtEnrollNumber = new TextEdit();
            this.labelControl1 = new LabelControl();
            this.txtEmployeeCode = new TextEdit();
            this.groupControl1 = new GroupControl();
            this.gcList = new GridControl();
            this.gbList = new GridView();
            this.colEmployeeCode = new GridColumn();
            this.colFirstName = new GridColumn();
            this.colEnrollNumber = new GridColumn();
            this.colReset = new GridColumn();
            this.colLastName = new GridColumn();
            this.repositoryItemHyperLinkEdit1 = new RepositoryItemHyperLinkEdit();
            this.layoutControlGroup1 = new LayoutControlGroup();
            this.layoutControlItem1 = new LayoutControlItem();
            this.layoutControlItem2 = new LayoutControlItem();
            this.layoutControlItem3 = new LayoutControlItem();
            this.layoutControlItem4 = new LayoutControlItem();
            this.simpleLabelItem1 = new SimpleLabelItem();
            this.timer = new System.Windows.Forms.Timer(this.components);
            this.layoutControl1.BeginInit();
            this.layoutControl1.SuspendLayout();
            this.panelControl1.BeginInit();
            this.panelControl1.SuspendLayout();
            this.groupControl2.BeginInit();
            this.groupControl2.SuspendLayout();
            this.txtEnrollNumber.Properties.BeginInit();
            this.txtEmployeeCode.Properties.BeginInit();
            this.groupControl1.BeginInit();
            this.groupControl1.SuspendLayout();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.repositoryItemHyperLinkEdit1.BeginInit();
            this.layoutControlGroup1.BeginInit();
            this.layoutControlItem1.BeginInit();
            this.layoutControlItem2.BeginInit();
            this.layoutControlItem3.BeginInit();
            this.layoutControlItem4.BeginInit();
            this.simpleLabelItem1.BeginInit();
            base.SuspendLayout();
            this.layoutControl1.Controls.Add(this.panelControl1);
            this.layoutControl1.Controls.Add(this.btnReset);
            this.layoutControl1.Controls.Add(this.groupControl2);
            this.layoutControl1.Controls.Add(this.groupControl1);
            this.layoutControl1.Dock = DockStyle.Fill;
            this.layoutControl1.Location = new Point(0, 0);
            this.layoutControl1.Name = "layoutControl1";
            this.layoutControl1.Root = this.layoutControlGroup1;
            this.layoutControl1.Size = new Size(0x264, 0x12e);
            this.layoutControl1.TabIndex = 0;
            this.layoutControl1.Text = "layoutControl1";
            this.panelControl1.Controls.Add(this.labelControl3);
            this.panelControl1.Location = new Point(0x184, 0xc7);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new Size(0xde, 0x65);
            this.panelControl1.TabIndex = 7;
            this.labelControl3.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.labelControl3.Appearance.Options.UseFont = true;
            this.labelControl3.Location = new Point(8, 0x19);
            this.labelControl3.Name = "labelControl3";
            this.labelControl3.Size = new Size(210, 0x34);
            this.labelControl3.TabIndex = 0;
            this.labelControl3.Text = "Sau khi ho\x00e0n tất qu\x00e1 tr\x00ecnh đăng k\x00fd  \r\n\r\nVui l\x00f2ng khởi động lại m\x00e1y chấm c\x00f4ng\r\n  ";
            this.btnReset.Location = new Point(0x184, 0xad);
            this.btnReset.Name = "btnReset";
            this.btnReset.Size = new Size(0xde, 0x16);
            this.btnReset.StyleController = this.layoutControl1;
            this.btnReset.TabIndex = 6;
            this.btnReset.Text = "Khởi động lại m\x00e1y chấm c\x00f4ng";
            this.btnReset.Click += new EventHandler(this.btnReset_Click);
            this.groupControl2.Controls.Add(this.btnSignUp);
            this.groupControl2.Controls.Add(this.lbStatus);
            this.groupControl2.Controls.Add(this.btnReg);
            this.groupControl2.Controls.Add(this.labelControl2);
            this.groupControl2.Controls.Add(this.txtEnrollNumber);
            this.groupControl2.Controls.Add(this.labelControl1);
            this.groupControl2.Controls.Add(this.txtEmployeeCode);
            this.groupControl2.Location = new Point(0x184, 2);
            this.groupControl2.Name = "groupControl2";
            this.groupControl2.Size = new Size(0xde, 0xa7);
            this.groupControl2.TabIndex = 5;
            this.groupControl2.Text = "Bảng đăng k\x00fd";
            this.btnSignUp.Location = new Point(5, 0x19);
            this.btnSignUp.Name = "btnSignUp";
            this.btnSignUp.Size = new Size(0xd4, 0x17);
            this.btnSignUp.TabIndex = 6;
            this.btnSignUp.Text = "Đăng k\x00fd v\x00e2n tay";
            this.btnSignUp.Click += new EventHandler(this.btnSignUp_Click);
            this.lbStatus.Location = new Point(8, 0x90);
            this.lbStatus.Name = "lbStatus";
            this.lbStatus.Size = new Size(0, 13);
            this.lbStatus.TabIndex = 5;
            this.btnReg.Appearance.Options.UseTextOptions = true;
            this.btnReg.Appearance.TextOptions.WordWrap = WordWrap.Wrap;
            this.btnReg.Enabled = false;
            this.btnReg.Location = new Point(0x75, 0x42);
            this.btnReg.Name = "btnReg";
            this.btnReg.Size = new Size(100, 0x44);
            this.btnReg.TabIndex = 4;
            this.btnReg.Text = "Đăng k\x00fd";
            this.btnReg.Click += new EventHandler(this.btnReg_Click);
            this.labelControl2.Location = new Point(5, 0x5f);
            this.labelControl2.Name = "labelControl2";
            this.labelControl2.Size = new Size(0x3d, 13);
            this.labelControl2.TabIndex = 3;
            this.labelControl2.Text = "M\x00e3 v\x00e2n tay :";
            this.txtEnrollNumber.Enabled = false;
            this.txtEnrollNumber.Location = new Point(5, 0x72);
            this.txtEnrollNumber.Name = "txtEnrollNumber";
            this.txtEnrollNumber.Size = new Size(0x6a, 20);
            this.txtEnrollNumber.TabIndex = 2;
            this.labelControl1.Location = new Point(5, 50);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new Size(0x47, 13);
            this.labelControl1.TabIndex = 1;
            this.labelControl1.Text = "M\x00e3 nh\x00e2n vi\x00ean :";
            this.txtEmployeeCode.Enabled = false;
            this.txtEmployeeCode.Location = new Point(5, 0x45);
            this.txtEmployeeCode.Name = "txtEmployeeCode";
            this.txtEmployeeCode.Size = new Size(0x6a, 20);
            this.txtEmployeeCode.TabIndex = 0;
            this.groupControl1.Controls.Add(this.gcList);
            this.groupControl1.Location = new Point(2, 2);
            this.groupControl1.Name = "groupControl1";
            this.groupControl1.Size = new Size(0x17e, 0x119);
            this.groupControl1.TabIndex = 4;
            this.groupControl1.Text = "Danh s\x00e1ch nh\x00e2n vi\x00ean ";
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.Location = new Point(2, 0x16);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemHyperLinkEdit1 });
            this.gcList.Size = new Size(0x17a, 0x101);
            this.gcList.TabIndex = 0;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.BorderStyle = BorderStyles.NoBorder;
            this.gbList.Columns.AddRange(new GridColumn[] { this.colEmployeeCode, this.colFirstName, this.colEnrollNumber, this.colReset, this.colLastName });
            this.gbList.GridControl = this.gcList;
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.Editable = false;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.FocusedRowChanged += new FocusedRowChangedEventHandler(this.gbList_FocusedRowChanged);
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gbList.KeyDown += new KeyEventHandler(this.gbList_KeyDown);
            this.colEmployeeCode.AppearanceHeader.Options.UseTextOptions = true;
            this.colEmployeeCode.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.colEmployeeCode.Caption = "M\x00e3";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.VisibleIndex = 0;
            this.colFirstName.AppearanceHeader.Options.UseTextOptions = true;
            this.colFirstName.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.colFirstName.Caption = "Họ";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains;
            this.colFirstName.OptionsFilter.FilterPopupMode = FilterPopupMode.CheckedList;
            this.colFirstName.Visible = true;
            this.colFirstName.VisibleIndex = 1;
            this.colFirstName.Width = 0x7c;
            this.colEnrollNumber.AppearanceHeader.Options.UseTextOptions = true;
            this.colEnrollNumber.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.colEnrollNumber.Caption = "M\x00e3 chấm c\x00f4ng";
            this.colEnrollNumber.FieldName = "EnrollNumber";
            this.colEnrollNumber.Name = "colEnrollNumber";
            this.colEnrollNumber.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains;
            this.colEnrollNumber.OptionsFilter.FilterPopupMode = FilterPopupMode.CheckedList;
            this.colEnrollNumber.Visible = true;
            this.colEnrollNumber.VisibleIndex = 3;
            this.colEnrollNumber.Width = 0x41;
            this.colReset.Caption = " ";
            this.colReset.FieldName = "Reset";
            this.colReset.Name = "colReset";
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Name = "colLastName";
            this.colLastName.Visible = true;
            this.colLastName.VisibleIndex = 2;
            this.colLastName.Width = 70;
            this.repositoryItemHyperLinkEdit1.AutoHeight = false;
            this.repositoryItemHyperLinkEdit1.Name = "repositoryItemHyperLinkEdit1";
            this.repositoryItemHyperLinkEdit1.OpenLink += new OpenLinkEventHandler(this.repositoryItemHyperLinkEdit1_OpenLink);
            this.repositoryItemHyperLinkEdit1.Click += new EventHandler(this.repositoryItemHyperLinkEdit1_Click);
            this.layoutControlGroup1.CustomizationFormText = "Root";
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True;
            this.layoutControlGroup1.GroupBordersVisible = false;
            this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem4, this.simpleLabelItem1 });
            this.layoutControlGroup1.Location = new Point(0, 0);
            this.layoutControlGroup1.Name = "Root";
            this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Size = new Size(0x264, 0x12e);
            this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Text = "Root";
            this.layoutControlGroup1.TextVisible = false;
            this.layoutControlItem1.Control = this.groupControl1;
            this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
            this.layoutControlItem1.Location = new Point(0, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new Size(0x182, 0x11d);
            this.layoutControlItem1.Text = "layoutControlItem1";
            this.layoutControlItem1.TextSize = new Size(0, 0);
            this.layoutControlItem1.TextToControlDistance = 0;
            this.layoutControlItem1.TextVisible = false;
            this.layoutControlItem2.Control = this.groupControl2;
            this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
            this.layoutControlItem2.Location = new Point(0x182, 0);
            this.layoutControlItem2.MaxSize = new Size(0xe2, 0xab);
            this.layoutControlItem2.MinSize = new Size(0xe2, 0xab);
            this.layoutControlItem2.Name = "layoutControlItem2";
            this.layoutControlItem2.Size = new Size(0xe2, 0xab);
            this.layoutControlItem2.SizeConstraintsType = SizeConstraintsType.Custom;
            this.layoutControlItem2.Text = "layoutControlItem2";
            this.layoutControlItem2.TextSize = new Size(0, 0);
            this.layoutControlItem2.TextToControlDistance = 0;
            this.layoutControlItem2.TextVisible = false;
            this.layoutControlItem3.Control = this.btnReset;
            this.layoutControlItem3.CustomizationFormText = "layoutControlItem3";
            this.layoutControlItem3.Location = new Point(0x182, 0xab);
            this.layoutControlItem3.Name = "layoutControlItem3";
            this.layoutControlItem3.Size = new Size(0xe2, 0x1a);
            this.layoutControlItem3.Text = "layoutControlItem3";
            this.layoutControlItem3.TextSize = new Size(0, 0);
            this.layoutControlItem3.TextToControlDistance = 0;
            this.layoutControlItem3.TextVisible = false;
            this.layoutControlItem4.Control = this.panelControl1;
            this.layoutControlItem4.CustomizationFormText = "layoutControlItem4";
            this.layoutControlItem4.Location = new Point(0x182, 0xc5);
            this.layoutControlItem4.Name = "layoutControlItem4";
            this.layoutControlItem4.Size = new Size(0xe2, 0x69);
            this.layoutControlItem4.Text = "layoutControlItem4";
            this.layoutControlItem4.TextSize = new Size(0, 0);
            this.layoutControlItem4.TextToControlDistance = 0;
            this.layoutControlItem4.TextVisible = false;
            this.simpleLabelItem1.CustomizationFormText = "Chọn nh\x00e2n vi\x00ean rồi d\x00f9ng ph\x00edm Delete để x\x00f3a v\x00e2n tay của nh\x00e2n vi\x00ean";
            this.simpleLabelItem1.Location = new Point(0, 0x11d);
            this.simpleLabelItem1.Name = "simpleLabelItem1";
            this.simpleLabelItem1.Size = new Size(0x182, 0x11);
            this.simpleLabelItem1.Text = "Chọn nh\x00e2n vi\x00ean rồi d\x00f9ng ph\x00edm Delete để x\x00f3a v\x00e2n tay của nh\x00e2n vi\x00ean";
            this.simpleLabelItem1.TextSize = new Size(0x142, 13);
            this.timer.Interval = 0x3e8;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.layoutControl1);
            base.Name = "xucReg";
            base.Size = new Size(0x264, 0x12e);
            this.layoutControl1.EndInit();
            this.layoutControl1.ResumeLayout(false);
            this.panelControl1.EndInit();
            this.panelControl1.ResumeLayout(false);
            this.panelControl1.PerformLayout();
            this.groupControl2.EndInit();
            this.groupControl2.ResumeLayout(false);
            this.groupControl2.PerformLayout();
            this.txtEnrollNumber.Properties.EndInit();
            this.txtEmployeeCode.Properties.EndInit();
            this.groupControl1.EndInit();
            this.groupControl1.ResumeLayout(false);
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.repositoryItemHyperLinkEdit1.EndInit();
            this.layoutControlGroup1.EndInit();
            this.layoutControlItem1.EndInit();
            this.layoutControlItem2.EndInit();
            this.layoutControlItem3.EndInit();
            this.layoutControlItem4.EndInit();
            this.simpleLabelItem1.EndInit();
            base.ResumeLayout(false);
        }

        private void repositoryItemHyperLinkEdit1_Click(object sender, EventArgs e)
        {
            XtraMessageBox.Show("reset");
        }

        private void repositoryItemHyperLinkEdit1_OpenLink(object sender, OpenLinkEventArgs e)
        {
            XtraMessageBox.Show("reset");
        }
    }
}

